-- GENERATED SPELL FOR [Krom'Grul] --


function spell0_8977(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8977', 30314, 1)
end

function spell1_8977(pUnit, Event) --@Torch,n/a--
pUnit:FullCastSpellOnTarget(13381,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8977', 8000, 1)
end

function Sorts_8977(pUnit, Event)
local choix_sorts_8977 = math.random(0, 1)
if choix_sorts_8977 == 0 then
pUnit:RegisterEvent('spell0_8977', 1, 1)
end
if choix_sorts_8977 == 1 then
pUnit:RegisterEvent('spell1_8977', 1, 1)
end
end

function mob8977_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8977', math.random(1500, 3000), 1)
end

function mob8977_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8977_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8977_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8977, 1, 'mob8977_Action')
RegisterUnitEvent(8977, 2, 'mob8977_Leave')
RegisterUnitEvent(8977, 3, 'mob8977_Kill')
RegisterUnitEvent(8977, 4, 'mob8977_Die')
